home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / msysjour / vol06 / 01 / kermit / ttycls.h < prev    next >
C/C++ Source or Header  |  1990-12-31  |  970b  |  43 lines

  1. #ifdef WINDOWS
  2. #define HPS HDC
  3. #endif
  4.  
  5. /* 
  6.  * this structure contains most of the information needed
  7.  * to use the tty window.
  8.  */
  9.  
  10. struct TTYWND {
  11.     HWND hWnd;
  12. #ifdef WINDOWS
  13.     POINT Pos;
  14.     HANDLE hVidBuf;
  15.     HFONT hFont;
  16. #else
  17.     USHORT FontIndex;
  18.     POINTL Pos;
  19. #endif
  20.     BYTE *pVidBuf;
  21.     short CWidth, CHeight;
  22.     short Top, Left;
  23.     short Width, Height;
  24.     short MaxLines,MaxCols;
  25.     short MaxLineLength;
  26.     short CurLineOffset;
  27.     short oCurrentLine;
  28.     short oVidLastLine;
  29.     BOOL LFonCR;
  30.     BOOL CRonLF;
  31.     BOOL Wrap;
  32.     BOOL LocalEcho;
  33.     BYTE ebitmask;
  34. };
  35. typedef struct TTYWND *PTTYWND;
  36.  
  37. /* shared function declarations */
  38. InitTTYWindow(PTTYWND,short,short,short,short,short,short,
  39.             BOOL,BOOL,BOOL,unsigned short,BYTE);
  40. int NEAR TTYDisplay(PTTYWND pTTYWnd, short len, BYTE *str);
  41. void NEAR TTYWndPaint(PTTYWND pTTYWnd, HPS hPS, short top, short bottom);
  42. void NEAR TTYClear(PTTYWND pTTYWnd);
  43.